<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Ngoa long</title>
    <link rel="stylesheet" href="<?php echo base_url('public/admin');?>/css/css.css" type="text/css" media="screen" title="default" />
    <link rel="stylesheet" href="<?php echo base_url('public/admin');?>/css/test.css" type="text/css" media="screen" title="default" />
    <link rel="stylesheet" media="all" type="text/css" href="<?php echo base_url('public/admin');?>/css/pro_dropline_ie.css" />
    <!--phan trang ajax-->
    <script type="text/javascript" src="<?php echo base_url('public/admin/js/function.js')?>"></script>
    <script type="text/javascript" src="<?php echo base_url('public/temp/js/jquery-1.7.1.min.js');?>"></script>
    <script type="text/javascript" src="<?php echo base_url();?>public/ckeditor/ckeditor.js"></script>
    <script type="text/javascript">
        var base_url = '<?Php echo base_url(); ?>';
    </script>
    <script type="text/javascript">
        $(document).ready(function() {
            // Sự kiện khi ô checkAll được check
            $("input[name='checkAll']").click(function() {

                // Thêm thuộc tính checked cho ô checkAll
                var checked = $(this).attr("checked");

                // Thêm thuộc tính checked cho ô checkbox khác
                $("tbody tr td input:checkbox").attr("checked", checked);
            });
        });
    </script>

    <script type="text/javascript">
        function Check(chk)
        {
            if(document.fcheck.checkAll.checked==true){
                for (i = 0; i < chk.length; i++)
                    chk[i].checked = true ;
            }else{
                for (i = 0; i < chk.length; i++)
                    chk[i].checked = false ;
            }
        }
        function unCheck(chk)
        {
            $("input[name='checkAll']").remove("checked", checked) ;
            if(document.fcheck.checkAll.checked==true){
                for (i = 0; i < chk.length; i++)
                    chk[i].checked = true ;
            }else{
                for (i = 0; i < chk.length; i++)
                    chk[i].checked = false ;
            }
        }
    </script>

    <script type="text/javascript">
        $(".paging > ul li").live('click',function(){
            var page = $(this).attr('page');
            $("#content-outer").load('<?php echo site_url('admin/product') ;?>?page=' + page + ' #content-outer > *');
        });
    </script>
    <script type="text/javascript">

        // $(".styledselect_pages").live('change',function() {
        //   var number = $(this).val();
        //     $("#content-outer").load('<?php echo site_url('admin/product') ;?>?number=' + number + ' #content-outer > *');
        // });

    </script>
</head>
<body>
<!-- Start: page-top-outer -->
<div id="page-top-outer">
    <!-- Start: page-top -->
    <div id="page-top">
        <div id="logo">
            <a href=""><img src="<?php echo base_url('public/admin');?>/images/shared/logo.png" width="156" height="40" alt="" /></a>
        </div>
        <!--  start top-search -->

        <div id="top-search">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <h2 style="color: #ffffff;margin: 5px;">Tìm kiếm nâng cao</h2>
                    </td>
                    <td><input name="query" type="text" id="faq_search_input" class="top-search-inp" /></td>
                </tr>
            </table>
        </div>
    </div>
    <!-- End: page-top -->
</div>
<!-- End: page-top-outer -->
<div class="clear">&nbsp;</div>
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat">
    <!--  start nav-outer -->
    <div class="nav-outer">
        <!-- start nav-right -->
        <div id="nav-right">
            <div class="showhide-account"><img src="<?php echo base_url('public/admin');?>/images/shared/nav/nav_myaccount.gif" width="93" height="14" alt="" /></div>
            <a href="<?php echo site_url('admin/product/logOut')?>" id="logout"><img src="<?php echo base_url('public/admin');?>/images/shared/nav/nav_logout.gif" width="64" height="14" alt="" /></a>
            <div class="clear">&nbsp;</div>
        </div>
        <!-- end nav-right -->
        <!--  start nav -->
        <div id="menu">
            <ul id="topnav">
                <li <?php if(isset($cur_pr)) echo 'class ="' . $cur_pr . '"'; else echo ''?>>
                    <a href="<?php echo site_url('admin/product');?>">Products </a>
                    <ul class="children"  >
                        <li <?php if(isset($all)) echo 'class ="' . $all . '"'; else echo ''?>>
                            <a href="<?php echo site_url('admin/product');?>">View all products</a>
                        </li>
                        <li <?php if(isset($insert)) echo 'class ="' . $insert . '"'; else echo ''?>>
                            <a href="<?php echo site_url('admin/product/insert');?>">Add product</a>
                        </li>
                        <li <?php if(isset($edit)) echo 'class ="' . $edit . '"'; else echo ''?>>
                            <a href="#">Edit product</a>
                        </li>
                    </ul>
                </li>

                <li <?php if(isset($cur_cat)) echo 'class ="' . $cur_cat . '"'; else echo ''?>>
                    <a href="<?php echo site_url('admin/category');?>">category </a>
                    <ul class="children"  >
                        <li <?php if(isset($all)) echo 'class ="' . $all . '"'; else echo ''?>>
                            <a href="<?php echo site_url('admin/category');?>">View all category</a>
                        </li>
                        <li <?php if(isset($insert)) echo 'class ="' . $insert . '"'; else echo ''?>>
                            <a href="<?php echo site_url('admin/category/insert');?>">Add category</a>
                        </li>
                        <li  <?php if(isset($edit)) echo 'class ="' . $edit . '"'; else echo ''?>>
                            <a href="#">Edit category</a>
                        </li>
                    </ul>
                </li>
                <li><a href="#">Home </a></li>
                <li><a href="#">Home </a></li>
            </ul>
        </div>
        <!--  start nav -->
    </div>
    <!--  start nav-outer -->
</div>
<!--  start nav-outer-repeat................................................... END -->

